package com.wisdudu.blank.data.source.remote.client.retrofit.subscribers;

import com.orhanobut.logger.Logger;

import java.util.Arrays;

import rx.Subscriber;

/**
 * Created by qyf on 2016/9/2.
 */

public abstract class NextErrorSubscriber<T> extends Subscriber<T> {
    @Override
    public void onCompleted() {
        completed();
    }
    public void completed() {
    }

    @Override
    public void onError(Throwable e) {
        Logger.e("%s,%s,%s,%s",e.getMessage(),e.getCause(), Arrays.toString(e.getStackTrace()),e.getLocalizedMessage());
    }
}
